package com.bwie.system.service.impl;

import com.bwie.common.domain.User;
import com.bwie.system.mapper.UserMapper;
import com.bwie.system.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @className: UserServiceImpl
 * @Description: TODO
 * @version: v1.８.0
 * @author:
 * @date:
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User findByTel(User user) {
        User byTel = userMapper.findByTel(user);
        return byTel;
    }

    @Override
    public List<User> userList(User user) {
        List<User> list = userMapper.userList(user);
        return list;
    }

    @Override
    public Integer addUserBatch(List<User> userList) {
        Integer i = userMapper.addUserBatch(userList);
        return i;
    }


}
